<?php

class TimePicker {

    function chooseTime() {
	
		$hour = array('1','2','3','4','5','6','7','8','9','10','11','12');
	 
		echo '<select name="Hour">' . "\n";
	 
		// loop while $i is less than count(the amout of elements) of $arr
		for($i = 0; $i < count($hour); $i++) {
	   		echo '<option value="' . $hour[$i] . '">' . $hour[$i] . "</option>\n";
	   	}
	 
		echo "</select>\n";
		
		echo " : \n";
		
		$minute = array('00', '05', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55');
	 
		echo '<select name="Minute">' . "\n";
	 
		// loop while $i is less than count(the amout of elements) of $arr
		for($i = 0; $i < count($minute); $i++) {
	   		echo '<option value="' . $minute[$i] .'">' . $minute[$i] . "</option>\n";
	   	}
	 
		echo "</select>\n";
		
		echo " \n";
		
		$meridiem = array('AM', 'PM');
	 
		echo '<select name="Meridiem">' . "\n";
	 
		// loop while $i is less than count(the amout of elements) of $arr
		for($i = 0; $i < count($meridiem); $i++) {
	   		echo '<option value="' . $meridiem[$i] . '">' . $meridiem[$i] . "</option>\n";
	   	}
	 
		echo "</select>\n";

	}
	
}

?>